<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>分派用户</title>
    <script src="/static/bflow/assets/js/scriptLib.js"></script>
    <script src="/static/bflow/assets/js/tableScriptLib.js"></script>
    <script type="text/javascript">
        $(function () {
            var singleSelect = CommUtil.setDefValue(getBrowserQueryVar("singleSelect"), false);

            //doc: http://bootstrap-table.wenzhixin.net.cn/zh-cn/documentation/
            $('#assignUserTable').bootstrapTable({
                url: '/bflow/extRes/getUserList',
                search: true,
                maintainSelected: true,
                clickToSelect: true,
                showToggle: true,
                pagination: true,
                showRefresh: true,
                showColumns: true,
                singleSelect: singleSelect,
                pageNumber: 1,  // 初始化加载第一页，默认第一页
                pageSize: 10,   // 每页的记录行数（*）
                pageList: [10, 20, 50],
            });
        });
        function retSelect(){
            var array = $('#assignUserTable').bootstrapTable('getAllSelections');
            if(null != array && array.length > 0){
                return array;
            }
            return null;
        };
    </script>
</head>
<body>
    <table id="assignUserTable">
        <thead>
            <tr>
                <th data-checkbox="true">#</th>
                <th data-field="userId">ID</th>
                <th data-field="userName">用户名称</th>
                <th data-field="roleKey">角色标识</th>
                <th data-field="roleName" >角色名</th>
                <th data-field="tel">联系电话</th>
            </tr>
        </thead>
        <tbody>

        </tbody>
    </table>
</body>
</html>